package com.vincent.template.service.logic;

import com.vincent.template.dto.biz.DepartmentDto;
import com.vincent.template.dto.biz.DepartmentTreeDto;

import java.util.List;

/**
 * @Author Vincent Wang
 * @Date 2020/10/19 13:45
 */
public interface DepartmentService {

    Long insert(DepartmentDto dto);

    Boolean update(Long departmentNo, DepartmentDto dto);

    Boolean move(Long departmentNo, Long parentNo);

    Boolean delete(Long departmentNo, Boolean removeSubs);

    DepartmentDto findDepartment(Long departmentNo);

    List<DepartmentDto> findAll();

    DepartmentTreeDto findDepartmentTree(Long departmentNo);

    Boolean syncDepartmentFullName(Long departmentNo);
}
